﻿/*****************************************************************//**
 * @file    FITKOCCViewAdaptorTopoIndexLabels.h
 * @brief   Adaptor for previewing the labels of shape elements.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-09-02
 *********************************************************************/

#ifndef __FITKOCCVIEWADAPTORTOPOINDEXLABELS_H__
#define __FITKOCCVIEWADAPTORTOPOINDEXLABELS_H__

#include "FITKOCCViewAdaptorBase.h"

#include "FITKOCCGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for previewing the labels of shape elements.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-09-02
     */
    class FITKOCCGRAPHADAPTORAPI FITKOCCViewAdaptorTopoIndexLabels : public FITKOCCViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKOCCViewAdaptorTopoIndexLabels);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-09-02
         */
        explicit FITKOCCViewAdaptorTopoIndexLabels() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-09-02
         */
        ~FITKOCCViewAdaptorTopoIndexLabels() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-09-02
         */
        bool update() override;

    };

    // Regist labels adaptor
    Register2FITKViewAdaptorFactory(TopoIndexLabelsOCC, Interface::FITKAbsVirtualTopo, FITKOCCViewAdaptorTopoIndexLabels);
}   // namespace Exchange

#endif // __FITKOCCVIEWADAPTORTOPOINDEXLABELS_H__